package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.base.mapper.voipmapper.ShopinfoesMapper;
import com.base.po.voip.Shopinfoes;
import com.base.po.voip.ShopinfoesExample;
import com.base.service.ShopinfoService;
import org.springframework.stereotype.Service;

@Service("shopinfoService")
public class ShopinfoServiceImpl implements ShopinfoService {
	@Autowired
	private ShopinfoesMapper shopinfoesMapper;

	@Override
	public int countByExample(ShopinfoesExample example) {
		return shopinfoesMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(ShopinfoesExample example) {
		return shopinfoesMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		return shopinfoesMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Shopinfoes record) {
		return shopinfoesMapper.insert(record);
	}

	@Override
	public int insertSelective(Shopinfoes record) {
		return shopinfoesMapper.insertSelective(record);
	}

	@Override
	public List<Shopinfoes> selectByExample(ShopinfoesExample example) {
		return shopinfoesMapper.selectByExample(example);
	}

	@Override
	public Shopinfoes selectByPrimaryKey(String id) {
		return shopinfoesMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(Shopinfoes record, ShopinfoesExample example) {
		return shopinfoesMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Shopinfoes record, ShopinfoesExample example) {
		return shopinfoesMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Shopinfoes record) {
		return shopinfoesMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Shopinfoes record) {
		return shopinfoesMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Shopinfoes> selectByGrade(Integer grade) {

		return shopinfoesMapper.selectByGrade(grade);
	}

	@Override
	public List<Shopinfoes> selectByAll(Shopinfoes record) {
		if (record.getAgentid() == null) {
			return null;
		}
		return shopinfoesMapper.selectByAll(record);
	}

}
